import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/HAdd',
      name: 'HAdd',
      component: () => import('../views/Hui/HAddView.vue'),
    },
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/Hui/LoginView.vue'),
    },
    {
      path: '/hlist',
      name: 'hlist',
      component: () => import('../views/Hui/HlistView.vue'),
    },
    {
      path: '/gai',
      name: 'gai',
      component: () => import('../views/Hui/gaiView.vue'),
    },
    {
      path: '/DAdd',
      name: 'DAdd',
      component: () => import('../views/Deng/DAddView.vue'),
    },
    {
      path: '/Dlist',
      name: 'Dlist',
      component: () => import('../views/Deng/DlistView.vue'),
    },
    {
      path: '/QYAdd',
      name: 'QYAdd',
      component: () => import('../views/QY/QAddView.vue'),
    },
    {
      path: '/QYlist',
      name: 'QYlist',
      component: () => import('../views//QY/QYlistView.vue'),
    },
    {
      path: '/xiu',
      name: 'xiu',
      component: () => import('../views//QY/xiuView.vue'),
    },
  ],
})

export default router
